package com.yunfei.bo.messageSendDtl;
import com.yunfei.entity.messageSendDtl.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename MESSAGE_SEND_DTL
*@author zhengyunfei
*@createDate Fri Feb 22 17:04:48 CST 2019
*/ 
public class MessageSendDtlBo implements java.io.Serializable{
	private String msgId;
	private String msgClass;
	private String msgCfgId;
	private String msgContext;
	private String createDate;
	private String sendObject;
	private String sendType;
	private String sendDate;
	private String sendState;
	private String readDate;
	private String readState;
	private String deleteDate;
	private String deleteState;
	private String cFundcode;
	private String cReserveno;
	private String cSaleoutId;
	private String sendId;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		int value=(curNo-1)*curSize;
		return value;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setMsgId(String msgId){
		this.msgId=msgId;
	}
	public String getMsgId(){
		return msgId;
	}
	public void setMsgClass(String msgClass){
		this.msgClass=msgClass;
	}
	public String getMsgClass(){
		return msgClass;
	}
	public void setMsgCfgId(String msgCfgId){
		this.msgCfgId=msgCfgId;
	}
	public String getMsgCfgId(){
		return msgCfgId;
	}
	public void setMsgContext(String msgContext){
		this.msgContext=msgContext;
	}
	public String getMsgContext(){
		return msgContext;
	}
	public void setCreateDate(String createDate){
		this.createDate=createDate;
	}
	public String getCreateDate(){
		return createDate;
	}
	public void setSendObject(String sendObject){
		this.sendObject=sendObject;
	}
	public String getSendObject(){
		return sendObject;
	}
	public void setSendType(String sendType){
		this.sendType=sendType;
	}
	public String getSendType(){
		return sendType;
	}
	public void setSendDate(String sendDate){
		this.sendDate=sendDate;
	}
	public String getSendDate(){
		return sendDate;
	}
	public void setSendState(String sendState){
		this.sendState=sendState;
	}
	public String getSendState(){
		return sendState;
	}
	public void setReadDate(String readDate){
		this.readDate=readDate;
	}
	public String getReadDate(){
		return readDate;
	}
	public void setReadState(String readState){
		this.readState=readState;
	}
	public String getReadState(){
		return readState;
	}
	public void setDeleteDate(String deleteDate){
		this.deleteDate=deleteDate;
	}
	public String getDeleteDate(){
		return deleteDate;
	}
	public void setDeleteState(String deleteState){
		this.deleteState=deleteState;
	}
	public String getDeleteState(){
		return deleteState;
	}
	public void setCFundcode(String cFundcode){
		this.cFundcode=cFundcode;
	}
	public String getCFundcode(){
		return cFundcode;
	}
	public void setCReserveno(String cReserveno){
		this.cReserveno=cReserveno;
	}
	public String getCReserveno(){
		return cReserveno;
	}
	public void setCSaleoutId(String cSaleoutId){
		this.cSaleoutId=cSaleoutId;
	}
	public String getCSaleoutId(){
		return cSaleoutId;
	}
	public void setSendId(String sendId){
		this.sendId=sendId;
	}
	public String getSendId(){
		return sendId;
	}
	public static MessageSendDtlEntity boToEntity(MessageSendDtlBo bo){
		MessageSendDtlEntity entity=new MessageSendDtlEntity();
		entity.setMsgId(bo.getMsgId());
		entity.setMsgClass(bo.getMsgClass());
		entity.setMsgCfgId(bo.getMsgCfgId());
		entity.setMsgContext(bo.getMsgContext());
		entity.setCreateDate(bo.getCreateDate());
		entity.setSendObject(bo.getSendObject());
		entity.setSendType(bo.getSendType());
		entity.setSendDate(bo.getSendDate());
		entity.setSendState(bo.getSendState());
		entity.setReadDate(bo.getReadDate());
		entity.setReadState(bo.getReadState());
		entity.setDeleteDate(bo.getDeleteDate());
		entity.setDeleteState(bo.getDeleteState());
		entity.setCFundcode(bo.getCFundcode());
		entity.setCReserveno(bo.getCReserveno());
		entity.setCSaleoutId(bo.getCSaleoutId());
		entity.setSendId(bo.getSendId());
		return entity;
	}
	public static MessageSendDtlBo entityToBo(MessageSendDtlEntity bo){
		MessageSendDtlBo entity=new MessageSendDtlBo();
		entity.setMsgId(bo.getMsgId());
		entity.setMsgClass(bo.getMsgClass());
		entity.setMsgCfgId(bo.getMsgCfgId());
		entity.setMsgContext(bo.getMsgContext());
		entity.setCreateDate(bo.getCreateDate());
		entity.setSendObject(bo.getSendObject());
		entity.setSendType(bo.getSendType());
		entity.setSendDate(bo.getSendDate());
		entity.setSendState(bo.getSendState());
		entity.setReadDate(bo.getReadDate());
		entity.setReadState(bo.getReadState());
		entity.setDeleteDate(bo.getDeleteDate());
		entity.setDeleteState(bo.getDeleteState());
		entity.setCFundcode(bo.getCFundcode());
		entity.setCReserveno(bo.getCReserveno());
		entity.setCSaleoutId(bo.getCSaleoutId());
		entity.setSendId(bo.getSendId());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("msgId")){
					result="MSG_ID";
				}
				if(field.equals("msgClass")){
					result="MSG_CLASS";
				}
				if(field.equals("msgCfgId")){
					result="MSG_CFG_ID";
				}
				if(field.equals("msgContext")){
					result="MSG_CONTEXT";
				}
				if(field.equals("createDate")){
					result="CREATE_DATE";
				}
				if(field.equals("sendObject")){
					result="SEND_OBJECT";
				}
				if(field.equals("sendType")){
					result="SEND_TYPE";
				}
				if(field.equals("sendDate")){
					result="SEND_DATE";
				}
				if(field.equals("sendState")){
					result="SEND_STATE";
				}
				if(field.equals("readDate")){
					result="READ_DATE";
				}
				if(field.equals("readState")){
					result="READ_STATE";
				}
				if(field.equals("deleteDate")){
					result="DELETE_DATE";
				}
				if(field.equals("deleteState")){
					result="DELETE_STATE";
				}
				if(field.equals("cFundcode")){
					result="C_FUNDCODE";
				}
				if(field.equals("cReserveno")){
					result="C_RESERVENO";
				}
				if(field.equals("cSaleoutId")){
					result="C_SALEOUT_ID";
				}
				if(field.equals("sendId")){
					result="SEND_ID";
				}
		}
		return result;
	}
}

